﻿@model IEnumerable<FantasyDraft2.Models.User>

@{
    ViewBag.Title = "Fantasy Home";
}

<h2>Fantasy Home</h2>

<table>
    <tr>
        <th>
            Owner Name
        </th>
        <th>
            Team Name
        </th>
        <th>
            Season Score
        </th>
        <th>

    </tr>
    @foreach (var u in Model)
    {
        <tr>
            <td>
                @Html.ActionLink(u.UserName, "Owner", new { user = u.UserName })
            </td>
            <td>
                @Html.ActionLink(u.TeamName, "Team", new { user = u.TeamName })
            </td>
            <td>
                @u.Score
            </td>
        </tr>
    }  
    </table>